package tds.model15.version1;

/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName StockObserver
 * @Description 看股票的同事
 * @author tds
 * @Date 2020/1/30 17:00
 * @version 1.0.0
 */
public class StockObserver extends Observer {

    public StockObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void update() {
        System.out.printf("%s,%s关闭了股票行情，继续工作\n", sub.getSubjectState(), name);
    }
}
